#include"TextureClass.h"

TextureClass::TextureClass()
{
	mTexture = NULL;
}

TextureClass::TextureClass(const TextureClass&other)
{

}

TextureClass::~TextureClass()
{

}

bool TextureClass::Initilize(ID3D11Device* d3dDevice, WCHAR* TextureFilename)
{
	HR(D3DX11CreateShaderResourceViewFromFileW(d3dDevice, TextureFilename, NULL, NULL, &mTexture, NULL));
	return true;
}

void TextureClass::Shutdown()
{
	ReleaseCOM(mTexture);
}

ID3D11ShaderResourceView* TextureClass::GetTexture()
{
	return mTexture;
}

